<ul class="main-menu">
    <?php foreach ($GLOBALS['main_menu'] as $i => $v):?>
        <li><?= anc($i, "<span>$v</span>" ,($i==$controller)?array('class'=>'active-menu'):'')?> </li>
    <?php endforeach;?>
</ul>